package pannel.order;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private Integer id;
    private Integer userId;
    private Integer productId;
    private Integer quantity;
    private Double totalPrice;
    private String status;
    private Date createTime;
    
    // 订单状态常量
    public static final String STATUS_PENDING = "待支付";
    public static final String STATUS_PAID = "已支付";
    public static final String STATUS_CANCELLED = "已取消";
    
    // 用于显示的额外字段(非数据库字段)
    private String userName;    // 用户名
    private String productName; // 商品名称
} 